package com.diaohw.platform.remote.auth.obj.bo;

import com.diaohw.platform.remote.auth.enums.AccountStateEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class AccountSaltBO {

    private String id;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 加密盐值
     */
    @Schema(description = "加密盐值")
    private String salt;

    /**
     * 状态;状态，0：禁用，1：启用，2：锁定
     */
    @Schema(description = "状态;状态，0：禁用，1：启用，2：锁定")
    private Integer state;


    public AccountStateEnum stateEnum() {
        return AccountStateEnum.parse(this.state);
    }


}
